package com.cems.service.impl;

import com.cems.mapper.MessageMapper;
import com.cems.pojo.Message;
import com.cems.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
@Service
public class MessageServiceImpl implements MessageService {
    @Autowired
    MessageMapper messageMapper;
    @Override
    public List<Message> selAllMessageById(int id) {
        return messageMapper.selAllMessageById(id);
    }

    @Override
    public int addMessage(Map<String, Object> map) {
        return messageMapper.addMessage(map);
    }

    @Override
    public int delMessage(int id) {
        return messageMapper.delMessage(id);
    }

    @Override
    public Message selAllMessageById2(int id) {
        return messageMapper.selAllMessageById2(id);
    }
}
